<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U('')}">
       <div class="tab-content">
  
          <div class="form-group">
            <label class="col-sm-2 control-label "> <span class="red">*</span>提货站名称 </label>
            <div class="col-sm-10">
              <input type="text"  name="name" value="{$data.name}" class="input-xxlarge  " />
               </div>
          </div>

           <div class="space-4"></div>


           <div class="form-group">
               <label class="col-sm-2 control-label "><span class="red">*</span> 地址 </label>
               <div class="col-sm-10">
                   <input type="text"  name="address" value="{$data.address}" class="input-xxlarge " />
               </div>
           </div>
           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "><span class="red">*</span> 联系人 </label>
               <div class="col-sm-10">
                   <input type="text"  name="lianxiren" value="{$data.lianxiren}" class="input-small  " />
               </div>
           </div>
           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "><span class="red">*</span> 电话 </label>
               <div class="col-sm-10">
                   <input type="text"  name="tel" value="{$data.tel}" class="input-medium  " />
               </div>
           </div>
           <div class="space-4"></div>


           <div class="form-group">
               <label class="col-sm-2 control-label "> 封面 </label>
               <div class="col-sm-10">
                   <att model="product"  action="img"  field="thumb" value="data[thumb]"/>
               </div>
           </div>

           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> 坐标 </label>
               <div class="col-sm-10">

                   <span class="control-label "> 经度</span>

                   <input type="text"  name="zuobiao_x" value="{$data.zuobiao_x}" class="input-medium " />

                   <span class="control-label "> 纬度</span>

                   <input type="text"  name="zuobiao_y" value="{$data.zuobiao_y}" class="input-medium " />


                   <a href="http://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank">获取坐标</a>

               </div>
           </div>



           <div class="space-4"></div>

           <div class="form-group">
               <label class="col-sm-2 control-label "> <span class="red">*</span>负责的提货站 </label>
               <div class="col-sm-10">
                   <select class="input-large plus "  name="shuser" >

                       <option value="">请选择</option>

                       <volist name=":F('Var_Shuser')" id="vo"  >

                           <php>$clecked=($vo[name]==$data['shuer'])?'selected':'';</php>


                           <option value="{$vo.name}" {$clecked}>{$vo.name}</option>

                       </volist>
                   </select>

               </div>
           </div>











       </div>
       <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  /></if>
      <div class="form-actions">
          <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>提交</if></button>

      	 <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
      </div>
      
      </div>
    </form>
</block>
<block name="plugin-script">
    <script src="__JS__/content.js"></script>
    <script src="__JS__/ueditor/ueditor.config.js"></script>
    <script src="__JS__/ueditor/ueditor.all.min.js"></script>
</block>